<template>
	<view>
		<u-cell-group>
			<u-cell size="large" title="个人资料" url="/service/userInfo/userInfo" />
			<u-cell size="large" title="实名信息" link-type="navigateTo" url="/service/realInfo/realInfo" />
			<u-cell size="large" title="用户协议" link-type="navigateTo" :url="'/service/info/info?id=' + agreement_id + '&name=用户协议'" />
			<u-cell size="large" title="隐私政策" link-type="navigateTo" :url="'/service/info/info?id=' + privacy_id + '&name=隐私政策'" />
			<u-cell size="large" title="关于我们" link-type="navigateTo" url="/service/AboutUs/AboutUs" />
		</u-cell-group>

		<view class="btn z-text-c z-margin-t-100" @tap="out">退出登录</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			agreement_id: uni.getStorageSync('config').service_agreement_info_id,
			privacy_id: uni.getStorageSync('config').service_privacy_info_id
		};
	},
	onLoad(options) {
		
	},
	methods: {
		out() {
			uni.removeStorageSync('token')
			uni.removeStorageSync('user')
			uni.removeStorageSync('userInfo')
			uni.reLaunch({
				url: '/pages/index/index'
			});
		}
	}
};
</script>

<style>
.btn {
	width: 686rpx;
	height: 98rpx;
	background: rgba(22, 119, 255, 0.1);
	border-radius: 10rpx 10rpx 10rpx 10rpx;
	opacity: 1;
	font-size: 30rpx;
	font-weight: bold;
	color: #1677ff;
	line-height: 35rpx;
	line-height: 98rpx;
	margin: auto;
}
</style>
